package com.alon.spring01.study;

import com.alon.spring01.common.config.redis.RedisUtil;

/**
 * @program: spring01
 * @description: 测试redis 分布式锁
 * @author: yulongguang
 * @create: 2019-05-17 16:20
 **/
public class TestRedisLock {
    public static void main(String[] args) {
        for (int i=0;i<10;i++){
            boolean lock = RedisUtil.lock("021");
            System.out.println(lock);
        }

    }
}
